<template>
  <van-button
    class="btn"
    :to="{ path: '/reportform', query: { id: id, name: name } }"
    icon="edit"
  ></van-button>
</template>

<script setup>
const $route = useRoute()
const res = $route.query
const { id, name } = res
</script>

<style scoped>
.btn {
  position: fixed;
  top: 200px;
  right: 5px;
  width: 25px;
  /* margin: 100px; */
  height: 25px;
  border-radius: 5px;
  line-height: 60px;
  /* text-align: center; */
  background: rgba(249, 249, 249, 0.5);
}
</style>
